using System;
using System.Drawing;
using System.Windows.Forms;
using ControlLibrary.StyledTextBox;

namespace TestClient
{
    public partial class Form1 : Form
    {
        private AlphaTextBox alphaBlendTextBox1;
        private AlphaRichTextBox alphaBlendTextBox2;
        private Button buttonColor;
        private Label label1;
        private Label label2;
        private Panel panel1;
        private TrackBar trackBar1;


        public Form1()
        {
            InitializeComponent();
        }


        private void TrackBar1Scroll(object sender, EventArgs e)
        {

            //alphaBlendTextBox2.BackAlpha = trackBar1.Value;
            alphaBlendTextBox1.AlphaAmount = trackBar1.Value;
        }

        private void ButtonColorClick(object sender, EventArgs e)
        {
            var c = new ColorDialog();

            c.Color = buttonColor.BackColor;
            if (c.ShowDialog() == DialogResult.OK)
            {
                buttonColor.BackColor = c.Color;
                alphaBlendTextBox1.BackColor = c.Color;
                alphaBlendTextBox2.BackColor = c.Color;
            }
            c.Dispose();
        }

        private void button1_Click(object sender, EventArgs e)
        {
           //alphaBlendTextBox2.Hook();
        }
    }
}